package com.ytjj.qmyx.admin.eunm;

import lombok.Getter;

/**
 *
 * @version 1.0
 *
 */
@Getter
public enum DataModelEnums {
    CASH_SCORE("CASH_SCORE","SCORE_ACTIVITY"),
    CASH_COUPON("CASH_COUPON", "COUPON_ACTIVITY"),
    SECKILL("SECKILL", "SECKILL"),
    OLD_FOR_NEW("OLD_FOR_NEW", "OLD_FOR_NEW"),
    RECHARGE_COUPON("RECHARGE_COUPON", "RECHARGE_COUPON"),
    RETURN_COUPON("RETURN_COUPON", "RETURN_COUPON"),
    PAY_AFTER_USE("PAY_AFTER_USE", "PAY_AFTER_USE"),
    ZERO_EVALUATION("ZERO_EVALUATION", "ZERO_EVALUATION"),
    GROUP_WORK("GROUP_WORK", "GROUP_WORK"),
    CHINA_GOLD("CHINA_GOLD", "CHINA_GOLD"),
    SHOPPING_CARD("SHOPPING_CARD", "SHOPPING_CARD"),
    GUESS_LIKE("GUESS_LIKE", "GUESS_LIKE"),
    MALL_COMMON("MALL_COMMON", "MALL_COMMON"),
    ;

    /**
     * 活动类型
     */
    private String activityType;

    /**
     * 路径代码
     */
    private String pathCode;

    DataModelEnums(String activityType, String pathCode) {
        this.activityType = activityType;
        this.pathCode = pathCode;
    }

    public static String getPathCode(String activityType) {
        DataModelEnums[] values = DataModelEnums.values();
        for (DataModelEnums value : values) {
            if (value.getActivityType().equals(activityType)) {
                return value.getPathCode();
            }
        }
        return null;
    }
}
